
#encoding=UTF-8

from Error import *
from Building import *

class GoldStorage(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Gold_Storage"
		self.number_available_dsec = """
1	1	2	2	2	2	2	3	4	4
"""
		self.level_info_desc = """
1	1,500	400	300	15 minutes	30	1
2	3,000	600	750	30 minutes	42	2
3	6,000	800	1,500	1 hour	60	2
4	12,000	1,000	3,000	2 hours	84	3
5	25,000	1,200	6,000	3 hours	103	3
6	50,000	1,500	12,000	4 hours	120	3
7	100,000	1,650	25,000	6 hours	146	4
8	250,000	1,740	50,000	8 hours	169	4
9	500,000	1,820	100,000	12 hours	207	5
10	1,000,000	1,920	250,000	1 day	293	6
11	2,000,000	2,016	500,000	2 days	415	7
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 2

	def _BuildCostType(self):
		return 1 #Elixir

	def _BuildCostIndex(self):
		return 3

	def _BuildTimeIndex(self):
		return 4

	def _ExperienceGainedIndex(self):
		return 5

	def _TownHallLevelRequiredIndex(self):
		return 6

